package com.rpc.server.impl;

import com.rpc.annotation.RpcService;
import com.rpc.model.Person;
import com.rpc.server.HelloService;

/**
 * @Auther: zwg
 * @Date: 2019/1/7 10:37
 * @Description:
 */
@RpcService(value = HelloService.class, version = "sample.hello2")
public class HelloSeviceImpl2 implements HelloService {
    @Override
    public String hello(String name) {
        return "你好! " + name;
    }

    @Override
    public String hello(Person person) {
        return "你好! " + person.getFirstName() + " " + person.getLastName();
    }
}
